#ifndef REGISTER_H
#define REGISTER_H

#include <netinet/in.h>

#include "common.h"
#include "readConig.h"

class registrar 
{
	int listen_fd;
	int nodeID;
	struct sockaddr_in local_addr;
	Config *configSettings;

public:
	registrar(int nodeID, int programID);
	~registrar();
	void sendMessage(int toNodeID, int toProgramID, char* buff, int buffSize);
	int getSockFd();
};

#endif //REGISTER_H
